package com.yonyou.cyxdms.sysAuth.service.dto;

import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @description：
 * @author     ：quankk
 * @date       ：Created in 2019/3/4 15:02
 * @modified By：
 */
@ApiModel(value = "密码修改对象", description = "密码修改对象")
public class PasswordDTO extends DMSBaseDTO implements Serializable {

    @ApiModelProperty(value = "原密码")
    private String oldPassword;

    @NotBlank(message="新密码不能为空")
    @ApiModelProperty(value = "新密码")
    private String newPassword;

    @ApiModelProperty(value = "验证码")
    private String checkCode;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "appId")
    private String appId = "cyx";

    public String getOldPassword() {
        return oldPassword;
    }

    public void setOldPassword(String oldPassword) {
        this.oldPassword = oldPassword;
    }

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }

    public String getCheckCode() {
        return checkCode;
    }

    public void setCheckCode(String checkCode) {
        this.checkCode = checkCode;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }
}
